package org.SoccerTournament.services.impl;

import javax.persistence.EntityManager;

import javax.persistence.PersistenceContext;

import org.SoccerTournament.model.User;
import org.SoccerTournament.services.UserService;
import org.springframework.transaction.annotation.Transactional;

public class UserServiceImpl implements UserService {

	private EntityManager em;
	
	@PersistenceContext
    public void setEntityManager(EntityManager em) {
        this.em = em;
    }
	
	@Transactional
	public void saveUser(User user){
		em.persist(user);
	}
	
	

}
